package com.edison.feign;

import com.edison.fallback.DemoService2FallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author edison
 */
@FeignClient(value = "demo-service-2", fallbackFactory = DemoService2FallBackFactory.class)
public interface DemoService2 {
    @GetMapping("/service-2/test/{type}")
    String test(@PathVariable("type") String type)  ;
}
